﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Hisun.UserControl.CostCenterItem
{
    public partial class SignleViewPage : System.Web.UI.UserControl
    {
        private string costItemBrevityCode;

        public string CostItemBrevityCode
        {
            get { return costItemBrevityCode; }
            set { costItemBrevityCode = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            List1.CostItemBrevityCode = costItemBrevityCode;
            List1.AccountPeriod = Application[ServerVars.sysApplcationAccountPeriod].ToString();
            if (!IsPostBack)
            {
                Search1.Add("作业中心ID");
                Search1.Add("作业中心名称");
            }
        }

        protected void btnSearch_Click(object sender, EventArgs e)
        {
            List1.SetSearchKey(Search1.GetParam());
        }
    }
}